package FactoryMethodPattern.idcard;
import FactoryMethodPattern.framework.*;
public class IDCard extends Product{
    private String owner;
    private int serial;
    IDCard(String owner,int serial){
        this.owner=owner;
        this.serial=serial;
    }
    @Override
    public void use() {
        System.out.println("使用"+owner+"("+serial+")"+"的ID卡");
    }

    public String getOwner() {
        return owner;
    }

    public int getSerial() {
        return serial;
    }
}
